//
//  Book.m
//  解归档
//
//  Created by apple on 15/9/6.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "Book.h"

@implementation Book

- (id)copyWithZone:(NSZone *)zone
{
    Book *book = [[[self class] allocWithZone:zone] init];
    return book;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeFloat:self.money forKey:@"money"];

}

- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init])
    {
        self.money = [aDecoder decodeFloatForKey:@"money"];
    }
    return self;
}

@end
